from utils.api import API
from django.conf.urls import url
from announcement.forms import *
from announcement.views import views_anno

baseUrl = "/api/announcement/"

getSoftNoticeAPI = API(GetSoftNoticeForm, method='POST', moduleUrl='softwareGet/', urlPrefix=baseUrl)
getRunLogAPI = API(GetRunLogForm, method='POST', moduleUrl='qtDemandGet/', urlPrefix=baseUrl)
getReadAPI = API(GetReadForm, method='POST', moduleUrl='read/', urlPrefix=baseUrl)

urlpatterns = [
    url(getSoftNoticeAPI.moduleUrl, views_anno.getSoftNotice),
    url(getRunLogAPI.moduleUrl, views_anno.getRunLog),
    url(getReadAPI.moduleUrl, views_anno.getRead),
]